Optimal. Leaf size=31 \[ \frac {2 \tanh ^{-1}\left (\frac {\sqrt {b^2-4 a b^3}+2 b^2 x}{b}\right )}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 58, normalized size of antiderivative = 1.87, number of steps
used = 3, number of rules used = 2, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.065, Rules used = {630, 31}
\begin {gather*} \frac {\log \left (\sqrt {b^2-4 a b^3}+2 b^2 x+b\right )}{b}-\frac {\log \left (-\sqrt {b^2-4 a b^3}-2 b^2 x+b\right )}{b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 630
Rubi steps
\begin {align*} \int \frac {1}{a b-\sqrt {b^2-4 a b^3} x-b^2 x^2} \, dx &=-\left (b \int \frac {1}{\frac {1}{2} \left (-b-\sqrt {b^2-4 a b^3}\right )-b^2 x} \, dx\right )+b \int \frac {1}{\frac {1}{2} \left (b-\sqrt {b^2-4 a b^3}\right )-b^2 x} \, dx\\ &=-\frac {\log \left (b-\sqrt {b^2-4 a b^3}-2 b^2 x\right )}{b}+\frac {\log \left (b+\sqrt {b^2-4 a b^3}+2 b^2 x\right )}{b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 32, normalized size = 1.03 \begin {gather*} \frac {2 \tanh ^{-1}\left (\frac {\sqrt {-b^2 (-1+4 a b)}+2 b^2 x}{b}\right )}{b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.52, size = 31, normalized size = 1.00
method | result | size |
default | \(\frac {2 \arctanh \left (\frac {2 b^{2} x +\sqrt {-b^{2} \left (4 a b -1\right )}}{b}\right )}{b}\) | \(31\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 51, normalized size = 1.65 \begin {gather*} -\frac {\log \left (\frac {2 \, b^{2} x - b + \sqrt {-4 \, a b^{3} + b^{2}}}{2 \, b^{2} x + b + \sqrt {-4 \, a b^{3} + b^{2}}}\right )}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 59 vs.
\(2 (29) = 58\).
time = 1.86, size = 59, normalized size = 1.90 \begin {gather*} \frac {\log \left (\frac {2 \, b^{2} x + b + \sqrt {-4 \, a b^{3} + b^{2}}}{b}\right ) - \log \left (\frac {2 \, b^{2} x - b + \sqrt {-4 \, a b^{3} + b^{2}}}{b}\right )}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 56 vs.
\(2 (26) = 52\).
time = 0.13, size = 56, normalized size = 1.81 \begin {gather*} - \frac {\log {\left (x - \frac {1}{2 b} + \frac {\sqrt {- 4 a b^{3} + b^{2}}}{2 b^{2}} \right )} - \log {\left (x + \frac {1}{2 b} + \frac {\sqrt {- 4 a b^{3} + b^{2}}}{2 b^{2}} \right )}}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.88, size = 54, normalized size = 1.74 \begin {gather*} -\frac {\log \left (\frac {{\left | 2 \, b^{2} x + \sqrt {-4 \, a b + 1} {\left | b \right |} - {\left | b \right |} \right |}}{{\left | 2 \, b^{2} x + \sqrt {-4 \, a b + 1} {\left | b \right |} + {\left | b \right |} \right |}}\right )}{{\left | b \right |}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.13, size = 38, normalized size = 1.23 \begin {gather*} \frac {2\,\mathrm {atanh}\left (\frac {\sqrt {b^2-4\,a\,b^3}}{\sqrt {b^2}}+\frac {2\,b^2\,x}{\sqrt {b^2}}\right )}{\sqrt {b^2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________